type runtime.spanClass
19 uses
runtime (current package)
malloc.go#L935: func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, shouldhelpgc bool) {
mcache.go#L147: func (c *mcache) refill(spc spanClass) {
mcache.go#L274: atomic.Xadd64(&stats.smallAllocCount[spanClass(i).sizeclass()], slotsUsed)
mcentral.go#L23: spanclass spanClass
mcentral.go#L48: func (c *mcentral) init(spc spanClass) {
mgcsweep.go#L90: func (s sweepClass) split() (spc spanClass, full bool) {
mgcsweep.go#L91: return spanClass(s >> 1), s&1 == 0
mheap.go#L478: spanclass spanClass // size class and noscan (uint8)
mheap.go#L555: type spanClass uint8
mheap.go#L559: tinySpanClass = spanClass(tinySizeClass<<1 | 1)
mheap.go#L562: func makeSpanClass(sizeclass uint8, noscan bool) spanClass {
mheap.go#L563: return spanClass(sizeclass<<1) | spanClass(bool2int(noscan))
mheap.go#L567: func (sc spanClass) sizeclass() int8 {
mheap.go#L572: func (sc spanClass) noscan() bool {
mheap.go#L764: h.central[i].mcentral.init(spanClass(i))
mheap.go#L951: func (h *mheap) alloc(npages uintptr, spanclass spanClass) *mspan {
mheap.go#L1169: func (h *mheap) allocSpan(npages uintptr, typ spanAllocType, spanclass spanClass) (s *mspan) {
mheap.go#L1382: func (h *mheap) initSpan(s *mspan, typ spanAllocType, spanclass spanClass, base, npages uintptr) {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |